<?php
$tdatacommercial_invoices_Chart=array();
	$tdatacommercial_invoices_Chart[".NumberOfChars"]=80; 
	$tdatacommercial_invoices_Chart[".ShortName"]="commercial_invoices_Chart";
	$tdatacommercial_invoices_Chart[".OwnerID"]="";
	$tdatacommercial_invoices_Chart[".OriginalTable"]="commercial_invoices";


	
//	field labels
$fieldLabelscommercial_invoices_Chart = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelscommercial_invoices_Chart["English"]=array();
	$fieldToolTipscommercial_invoices_Chart["English"]=array();
	$fieldLabelscommercial_invoices_Chart["English"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_Chart["English"]["id"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["account_id"] = "Account";
	$fieldToolTipscommercial_invoices_Chart["English"]["account_id"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["buyer_id"] = "Buyer";
	$fieldToolTipscommercial_invoices_Chart["English"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["consignee_id"] = "Consignee";
	$fieldToolTipscommercial_invoices_Chart["English"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["notify_id"] = "Notify";
	$fieldToolTipscommercial_invoices_Chart["English"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["commercial_invoice_no"] = "Invoice No";
	$fieldToolTipscommercial_invoices_Chart["English"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["commercial_invoice_date"] = "Invoice Date";
	$fieldToolTipscommercial_invoices_Chart["English"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["customer_purchase_order_no"] = "Customer PO No";
	$fieldToolTipscommercial_invoices_Chart["English"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["bl_awb_no"] = "BL/ AWB No";
	$fieldToolTipscommercial_invoices_Chart["English"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["country_id"] = "Country ";
	$fieldToolTipscommercial_invoices_Chart["English"]["country_id"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_Chart["English"]["export_date"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_Chart["English"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_Chart["English"]["export_references"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_Chart["English"]["export_route"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_Chart["English"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_Chart["English"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_Chart["English"]["certifications"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_Chart["English"]["account_name"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_Chart["English"]["buyer"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_Chart["English"]["consignee"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_Chart["English"]["notify"] = "";
	$fieldLabelscommercial_invoices_Chart["English"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_Chart["English"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_Chart["English"])){
		$tdatacommercial_invoices_Chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "Notify Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_no"] = "Commercial Invoice No";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_date"] = "Commercial Invoice Date";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["customer_purchase_order_no"] = "Customer Purchase Order No";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["bl_awb_no"] = "BL / AWB No";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["country_id"] = "Country";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["country_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["export_date"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["export_references"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["export_route"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["certifications"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["account_name"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["buyer"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["consignee"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["notify"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_Chart["Chinese (Hong Kong S.A.R.)"])){
		$tdatacommercial_invoices_Chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]=array();
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]=array();
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["notify_id"] = "Notify Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["commercial_invoice_no"] = "Invoice No";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["commercial_invoice_date"] = "Invoice Date";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["customer_purchase_order_no"] = "Customer PO No";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["bl_awb_no"] = "Bl Awb No";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["country_id"] = "Country Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["country_id"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["export_date"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["export_references"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["export_route"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["certifications"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["account_name"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["buyer"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["consignee"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["notify"] = "";
	$fieldLabelscommercial_invoices_Chart["Chinese (Taiwan)"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_Chart["Chinese (Taiwan)"])){
		$tdatacommercial_invoices_Chart[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelscommercial_invoices_Chart["French"]=array();
	$fieldToolTipscommercial_invoices_Chart["French"]=array();
	$fieldLabelscommercial_invoices_Chart["French"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["id"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["account_id"] = "Account Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["account_id"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["consignee_id"] = "Consignee Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["notify_id"] = "Notify Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["commercial_invoice_no"] = "Commercial Invoice No";
	$fieldToolTipscommercial_invoices_Chart["French"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["commercial_invoice_date"] = "Commercial Invoice Date";
	$fieldToolTipscommercial_invoices_Chart["French"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["customer_purchase_order_no"] = "Customer Purchase Order No";
	$fieldToolTipscommercial_invoices_Chart["French"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["bl_awb_no"] = "Bl Awb No";
	$fieldToolTipscommercial_invoices_Chart["French"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["country_id"] = "Country Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["country_id"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_Chart["French"]["export_date"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_Chart["French"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_Chart["French"]["export_references"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_Chart["French"]["export_route"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_Chart["French"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_Chart["French"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_Chart["French"]["certifications"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_Chart["French"]["account_name"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_Chart["French"]["buyer"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_Chart["French"]["consignee"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_Chart["French"]["notify"] = "";
	$fieldLabelscommercial_invoices_Chart["French"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_Chart["French"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_Chart["French"])){
		$tdatacommercial_invoices_Chart[".isUseToolTips"]=true;
	}
}


	
	$tdatacommercial_invoices_Chart[".NCSearch"]=true;

	
	$tdatacommercial_invoices_Chart[".ChartRefreshTime"] = 0;

$tdatacommercial_invoices_Chart[".shortTableName"] = "commercial_invoices_Chart";
$tdatacommercial_invoices_Chart[".nSecOptions"] = 0;
$tdatacommercial_invoices_Chart[".recsPerRowList"] = 1;	
$tdatacommercial_invoices_Chart[".tableGroupBy"] = "0";
$tdatacommercial_invoices_Chart[".mainTableOwnerID"] = "";
$tdatacommercial_invoices_Chart[".moveNext"] = 1;




$tdatacommercial_invoices_Chart[".showAddInPopup"] = false;

$tdatacommercial_invoices_Chart[".showEditInPopup"] = false;

$tdatacommercial_invoices_Chart[".showViewInPopup"] = false;


$tdatacommercial_invoices_Chart[".fieldsForRegister"] = array();

$tdatacommercial_invoices_Chart[".listAjax"] = false;

	$tdatacommercial_invoices_Chart[".audit"] = false;

	$tdatacommercial_invoices_Chart[".locking"] = false;
	
$tdatacommercial_invoices_Chart[".listIcons"] = true;
$tdatacommercial_invoices_Chart[".edit"] = true;
$tdatacommercial_invoices_Chart[".inlineEdit"] = true;
$tdatacommercial_invoices_Chart[".view"] = true;



$tdatacommercial_invoices_Chart[".delete"] = true;

$tdatacommercial_invoices_Chart[".showSimpleSearchOptions"] = false;

$tdatacommercial_invoices_Chart[".showSearchPanel"] = true;


$tdatacommercial_invoices_Chart[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatacommercial_invoices_Chart[".addPageEvents"] = false;

$tdatacommercial_invoices_Chart[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatacommercial_invoices_Chart[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatacommercial_invoices_Chart[".isUseTimeForSearch"] = false;

$tdatacommercial_invoices_Chart[".isUseiBox"] = false;



$tdatacommercial_invoices_Chart[".isUseInlineJs"] = $tdatacommercial_invoices_Chart[".isUseInlineAdd"] || $tdatacommercial_invoices_Chart[".isUseInlineEdit"];

$tdatacommercial_invoices_Chart[".allSearchFields"] = array();

$tdatacommercial_invoices_Chart[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "id";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "account_id";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "buyer_id";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "consignee_id";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "notify_id";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "commercial_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_no", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "commercial_invoice_no";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "commercial_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_date", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "commercial_invoice_date";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "customer_purchase_order_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_purchase_order_no", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "customer_purchase_order_no";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "bl_awb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bl_awb_no", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "bl_awb_no";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "country_id";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "export_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_date", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "export_date";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "payment_term";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "payment_term";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "export_references";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_references", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "export_references";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "export_route";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_route", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "export_route";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "package_marks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("package_marks", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "package_marks";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "misc_charges";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("misc_charges", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "misc_charges";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "certifications";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("certifications", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "certifications";	
}
$tdatacommercial_invoices_Chart[".globSearchFields"][] = "proforma_invoice_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_id", $tdatacommercial_invoices_Chart[".allSearchFields"]))
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "proforma_invoice_id";	
}


$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "id";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "account_id";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "buyer_id";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "consignee_id";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "notify_id";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "commercial_invoice_no";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "commercial_invoice_date";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "customer_purchase_order_no";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "bl_awb_no";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "country_id";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "export_date";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "payment_term";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "export_references";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "export_route";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "package_marks";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "misc_charges";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "certifications";
$tdatacommercial_invoices_Chart[".googleLikeFields"][] = "proforma_invoice_id";



$tdatacommercial_invoices_Chart[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "id";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "account_id";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "buyer_id";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "consignee_id";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "notify_id";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "commercial_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_no", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "commercial_invoice_no";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "commercial_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_date", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "commercial_invoice_date";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "customer_purchase_order_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_purchase_order_no", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "customer_purchase_order_no";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "bl_awb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bl_awb_no", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "bl_awb_no";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "country_id";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "export_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_date", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "export_date";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "payment_term";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "payment_term";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "export_references";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_references", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "export_references";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "export_route";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_route", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "export_route";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "package_marks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("package_marks", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "package_marks";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "misc_charges";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("misc_charges", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "misc_charges";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "certifications";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("certifications", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "certifications";	
}
$tdatacommercial_invoices_Chart[".advSearchFields"][] = "proforma_invoice_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_id", $tdatacommercial_invoices_Chart[".allSearchFields"])) 
{
	$tdatacommercial_invoices_Chart[".allSearchFields"][] = "proforma_invoice_id";	
}

$tdatacommercial_invoices_Chart[".isTableType"] = "chart";


	

$tdatacommercial_invoices_Chart[".isDisplayLoading"] = true;

$tdatacommercial_invoices_Chart[".isResizeColumns"] = false;




$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatacommercial_invoices_Chart[".strOrderBy"] = $gstrOrderBy;
	
$tdatacommercial_invoices_Chart[".orderindexes"] = array();

$tdatacommercial_invoices_Chart[".sqlHead"] = "SELECT id,   account_id,   buyer_id,   consignee_id,   notify_id,   commercial_invoice_no,   commercial_invoice_date,   customer_purchase_order_no,   bl_awb_no,   country_id,   export_date,   payment_term,   export_references,   export_route,   package_marks,   misc_charges,   certifications,   proforma_invoice_id";
$tdatacommercial_invoices_Chart[".sqlFrom"] = "FROM commercial_invoices";
$tdatacommercial_invoices_Chart[".sqlWhereExpr"] = "";
$tdatacommercial_invoices_Chart[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatacommercial_invoices_Chart[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatacommercial_invoices_Chart[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatacommercial_invoices_Chart[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["account_id"]=$fdata;
//	buyer_id
	$fdata = array();
	$fdata["strName"] = "buyer_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_id";
	
		$fdata["FullName"]= "buyer_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["buyer_id"]=$fdata;
//	consignee_id
	$fdata = array();
	$fdata["strName"] = "consignee_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Consignee"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consignee_id";
	
		$fdata["FullName"]= "consignee_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["consignee_id"]=$fdata;
//	notify_id
	$fdata = array();
	$fdata["strName"] = "notify_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Notify"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "notify_id";
	
		$fdata["FullName"]= "notify_id";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["notify_id"]=$fdata;
//	commercial_invoice_no
	$fdata = array();
	$fdata["strName"] = "commercial_invoice_no";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_invoice_no";
	
		$fdata["FullName"]= "commercial_invoice_no";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["commercial_invoice_no"]=$fdata;
//	commercial_invoice_date
	$fdata = array();
	$fdata["strName"] = "commercial_invoice_date";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_invoice_date";
	
		$fdata["FullName"]= "commercial_invoice_date";
	
		
		
		
		
		
				$fdata["Index"]= 7;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["commercial_invoice_date"]=$fdata;
//	customer_purchase_order_no
	$fdata = array();
	$fdata["strName"] = "customer_purchase_order_no";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Customer PO No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "customer_purchase_order_no";
	
		$fdata["FullName"]= "customer_purchase_order_no";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["customer_purchase_order_no"]=$fdata;
//	bl_awb_no
	$fdata = array();
	$fdata["strName"] = "bl_awb_no";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="BL/ AWB No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bl_awb_no";
	
		$fdata["FullName"]= "bl_awb_no";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["bl_awb_no"]=$fdata;
//	country_id
	$fdata = array();
	$fdata["strName"] = "country_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Country "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "country_id";
	
		$fdata["FullName"]= "country_id";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["country_id"]=$fdata;
//	export_date
	$fdata = array();
	$fdata["strName"] = "export_date";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Export Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "export_date";
	
		$fdata["FullName"]= "export_date";
	
		
		
		
		
		
				$fdata["Index"]= 11;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["export_date"]=$fdata;
//	payment_term
	$fdata = array();
	$fdata["strName"] = "payment_term";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Payment Term"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "payment_term";
	
		$fdata["FullName"]= "payment_term";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["payment_term"]=$fdata;
//	export_references
	$fdata = array();
	$fdata["strName"] = "export_references";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Export References"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "export_references";
	
		$fdata["FullName"]= "export_references";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=1000";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["export_references"]=$fdata;
//	export_route
	$fdata = array();
	$fdata["strName"] = "export_route";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Export Route"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "export_route";
	
		$fdata["FullName"]= "export_route";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["export_route"]=$fdata;
//	package_marks
	$fdata = array();
	$fdata["strName"] = "package_marks";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Package Marks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "package_marks";
	
		$fdata["FullName"]= "package_marks";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["package_marks"]=$fdata;
//	misc_charges
	$fdata = array();
	$fdata["strName"] = "misc_charges";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Misc Charges"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "misc_charges";
	
		$fdata["FullName"]= "misc_charges";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["misc_charges"]=$fdata;
//	certifications
	$fdata = array();
	$fdata["strName"] = "certifications";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Certifications"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "certifications";
	
		$fdata["FullName"]= "certifications";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["certifications"]=$fdata;
//	proforma_invoice_id
	$fdata = array();
	$fdata["strName"] = "proforma_invoice_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Proforma Invoice Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_invoice_id";
	
		$fdata["FullName"]= "proforma_invoice_id";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_Chart["proforma_invoice_id"]=$fdata;

$tdatacommercial_invoices_Chart[".chartXml"] = '<chart>
<attr value="tables">
	<attr value="0">commercial_invoices Chart</attr>
</attr>
<attr value="chart_type">
	<attr value="type">2d_column</attr>
</attr>

<attr value="parameters">
<attr value="0">
<attr value="name">account_id</attr>
<attr value="currencyFormat">0</attr>
<attr value="decimalFormat">2</attr>
<attr value="customFormat">0</attr>
<attr value="customFormatStr"></attr>
</attr>
<attr value="1">
<attr value="name">commercial_invoice_no</attr>
</attr>
</attr>


<attr value="appearance">
	<attr value="scolor11">FF0000</attr>
	<attr value="scolor12">FF0000</attr>

<attr value="head">'.xmlencode("Chart Title").'</attr>
<attr value="foot">'.xmlencode("Legend Title").'</attr>

<attr value="color51">49563A</attr>
<attr value="color52">49563A</attr>
<attr value="color61">49563A</attr>
<attr value="color62">49563A</attr>
<attr value="color71">C7CDC1</attr>
<attr value="color72">C7CDC1</attr>
<attr value="color81">ECF0E8</attr>
<attr value="color82">ECF0E8</attr>
<attr value="color91">68838B</attr>
<attr value="color92">68838B</attr>
<attr value="color101">48505A</attr>
<attr value="color102">48505A</attr>
<attr value="color111">45595F</attr>
<attr value="color112">45595F</attr>
<attr value="color121"></attr>
<attr value="color122"></attr>
<attr value="color131"></attr>
<attr value="color132"></attr>
<attr value="color141"></attr>
<attr value="color142"></attr>

<attr value="slegend">true</attr>
<attr value="sgrid">false</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="saxes">false</attr>
<attr value="slog">false</attr>
<attr value="aqua">None</attr>
<attr value="cview">Column</attr>
<attr value="is3d">0</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">5</attr>
<attr value="cscroll">true</attr>
<attr value="maxbarscroll">10</attr>
</attr>

<attr value="fields">
	<attr value="0">
		<attr value="name">id</attr>
		<attr value="label">Id</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="1">
		<attr value="name">account_id</attr>
		<attr value="label">Account</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="2">
		<attr value="name">buyer_id</attr>
		<attr value="label">Buyer</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="3">
		<attr value="name">consignee_id</attr>
		<attr value="label">Consignee</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="4">
		<attr value="name">notify_id</attr>
		<attr value="label">Notify</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="5">
		<attr value="name">commercial_invoice_no</attr>
		<attr value="label">Invoice No</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="6">
		<attr value="name">commercial_invoice_date</attr>
		<attr value="label">Invoice Date</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="7">
		<attr value="name">customer_purchase_order_no</attr>
		<attr value="label">Customer PO No</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="8">
		<attr value="name">bl_awb_no</attr>
		<attr value="label">BL/ AWB No</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="9">
		<attr value="name">country_id</attr>
		<attr value="label">Country </attr>
		<attr value="search"></attr>
	</attr>
	<attr value="10">
		<attr value="name">export_date</attr>
		<attr value="label">Export Date</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="11">
		<attr value="name">payment_term</attr>
		<attr value="label">Payment Term</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="12">
		<attr value="name">export_references</attr>
		<attr value="label">Export References</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="13">
		<attr value="name">export_route</attr>
		<attr value="label">Export Route</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="14">
		<attr value="name">package_marks</attr>
		<attr value="label">Package Marks</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="15">
		<attr value="name">misc_charges</attr>
		<attr value="label">Misc Charges</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="16">
		<attr value="name">certifications</attr>
		<attr value="label">Certifications</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="17">
		<attr value="name">proforma_invoice_id</attr>
		<attr value="label">Proforma Invoice Id</attr>
		<attr value="search"></attr>
	</attr>
</attr>


<attr value="settings">
<attr value="name">id</attr>
<attr value="short_table_name">commercial_invoices_Chart</attr>
</attr>

</chart>';
	
$tables_data["commercial_invoices Chart"]=&$tdatacommercial_invoices_Chart;
$field_labels["commercial_invoices_Chart"] = &$fieldLabelscommercial_invoices_Chart;
$fieldToolTips["commercial_invoices Chart"] = &$fieldToolTipscommercial_invoices_Chart;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["commercial_invoices Chart"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["commercial_invoices Chart"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto29=array();
$proto29["m_strHead"] = "SELECT";
$proto29["m_strFieldList"] = "id,   account_id,   buyer_id,   consignee_id,   notify_id,   commercial_invoice_no,   commercial_invoice_date,   customer_purchase_order_no,   bl_awb_no,   country_id,   export_date,   payment_term,   export_references,   export_route,   package_marks,   misc_charges,   certifications,   proforma_invoice_id";
$proto29["m_strFrom"] = "FROM commercial_invoices";
$proto29["m_strWhere"] = "";
$proto29["m_strOrderBy"] = "";
$proto29["m_strTail"] = "";
$proto30=array();
$proto30["m_sql"] = "";
$proto30["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto30["m_column"]=$obj;
$proto30["m_contained"] = array();
$proto30["m_strCase"] = "";
$proto30["m_havingmode"] = "0";
$proto30["m_inBrackets"] = "0";
$proto30["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto30);

$proto29["m_where"] = $obj;
$proto32=array();
$proto32["m_sql"] = "";
$proto32["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto32["m_column"]=$obj;
$proto32["m_contained"] = array();
$proto32["m_strCase"] = "";
$proto32["m_havingmode"] = "0";
$proto32["m_inBrackets"] = "0";
$proto32["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto32);

$proto29["m_having"] = $obj;
$proto29["m_fieldlist"] = array();
						$proto34=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "commercial_invoices"
));

$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

$proto29["m_fieldlist"][]=$obj;
						$proto36=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "commercial_invoices"
));

$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "";
$obj = new SQLFieldListItem($proto36);

$proto29["m_fieldlist"][]=$obj;
						$proto38=array();
			$obj = new SQLField(array(
	"m_strName" => "buyer_id",
	"m_strTable" => "commercial_invoices"
));

$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "";
$obj = new SQLFieldListItem($proto38);

$proto29["m_fieldlist"][]=$obj;
						$proto40=array();
			$obj = new SQLField(array(
	"m_strName" => "consignee_id",
	"m_strTable" => "commercial_invoices"
));

$proto40["m_expr"]=$obj;
$proto40["m_alias"] = "";
$obj = new SQLFieldListItem($proto40);

$proto29["m_fieldlist"][]=$obj;
						$proto42=array();
			$obj = new SQLField(array(
	"m_strName" => "notify_id",
	"m_strTable" => "commercial_invoices"
));

$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "";
$obj = new SQLFieldListItem($proto42);

$proto29["m_fieldlist"][]=$obj;
						$proto44=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_invoice_no",
	"m_strTable" => "commercial_invoices"
));

$proto44["m_expr"]=$obj;
$proto44["m_alias"] = "";
$obj = new SQLFieldListItem($proto44);

$proto29["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_invoice_date",
	"m_strTable" => "commercial_invoices"
));

$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "";
$obj = new SQLFieldListItem($proto46);

$proto29["m_fieldlist"][]=$obj;
						$proto48=array();
			$obj = new SQLField(array(
	"m_strName" => "customer_purchase_order_no",
	"m_strTable" => "commercial_invoices"
));

$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "";
$obj = new SQLFieldListItem($proto48);

$proto29["m_fieldlist"][]=$obj;
						$proto50=array();
			$obj = new SQLField(array(
	"m_strName" => "bl_awb_no",
	"m_strTable" => "commercial_invoices"
));

$proto50["m_expr"]=$obj;
$proto50["m_alias"] = "";
$obj = new SQLFieldListItem($proto50);

$proto29["m_fieldlist"][]=$obj;
						$proto52=array();
			$obj = new SQLField(array(
	"m_strName" => "country_id",
	"m_strTable" => "commercial_invoices"
));

$proto52["m_expr"]=$obj;
$proto52["m_alias"] = "";
$obj = new SQLFieldListItem($proto52);

$proto29["m_fieldlist"][]=$obj;
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "export_date",
	"m_strTable" => "commercial_invoices"
));

$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto29["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLField(array(
	"m_strName" => "payment_term",
	"m_strTable" => "commercial_invoices"
));

$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "";
$obj = new SQLFieldListItem($proto56);

$proto29["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "export_references",
	"m_strTable" => "commercial_invoices"
));

$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

$proto29["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "export_route",
	"m_strTable" => "commercial_invoices"
));

$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto29["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "package_marks",
	"m_strTable" => "commercial_invoices"
));

$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

$proto29["m_fieldlist"][]=$obj;
						$proto64=array();
			$obj = new SQLField(array(
	"m_strName" => "misc_charges",
	"m_strTable" => "commercial_invoices"
));

$proto64["m_expr"]=$obj;
$proto64["m_alias"] = "";
$obj = new SQLFieldListItem($proto64);

$proto29["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLField(array(
	"m_strName" => "certifications",
	"m_strTable" => "commercial_invoices"
));

$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "";
$obj = new SQLFieldListItem($proto66);

$proto29["m_fieldlist"][]=$obj;
						$proto68=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_invoice_id",
	"m_strTable" => "commercial_invoices"
));

$proto68["m_expr"]=$obj;
$proto68["m_alias"] = "";
$obj = new SQLFieldListItem($proto68);

$proto29["m_fieldlist"][]=$obj;
$proto29["m_fromlist"] = array();
												$proto70=array();
$proto70["m_link"] = "SQLL_MAIN";
			$proto71=array();
$proto71["m_strName"] = "commercial_invoices";
$proto71["m_columns"] = array();
$proto71["m_columns"][] = "id";
$proto71["m_columns"][] = "account_id";
$proto71["m_columns"][] = "buyer_id";
$proto71["m_columns"][] = "consignee_id";
$proto71["m_columns"][] = "notify_id";
$proto71["m_columns"][] = "commercial_invoice_no";
$proto71["m_columns"][] = "commercial_invoice_date";
$proto71["m_columns"][] = "customer_purchase_order_no";
$proto71["m_columns"][] = "bl_awb_no";
$proto71["m_columns"][] = "country_id";
$proto71["m_columns"][] = "export_date";
$proto71["m_columns"][] = "payment_term";
$proto71["m_columns"][] = "export_references";
$proto71["m_columns"][] = "export_route";
$proto71["m_columns"][] = "package_marks";
$proto71["m_columns"][] = "misc_charges";
$proto71["m_columns"][] = "certifications";
$proto71["m_columns"][] = "proforma_invoice_id";
$obj = new SQLTable($proto71);

$proto70["m_table"] = $obj;
$proto70["m_alias"] = "";
$proto72=array();
$proto72["m_sql"] = "";
$proto72["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto72["m_column"]=$obj;
$proto72["m_contained"] = array();
$proto72["m_strCase"] = "";
$proto72["m_havingmode"] = "0";
$proto72["m_inBrackets"] = "0";
$proto72["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto72);

$proto70["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto70);

$proto29["m_fromlist"][]=$obj;
$proto29["m_groupby"] = array();
$proto29["m_orderby"] = array();
$obj = new SQLQuery($proto29);

$queryData_commercial_invoices_Chart = $obj;
$tdatacommercial_invoices_Chart[".sqlquery"] = $queryData_commercial_invoices_Chart;

$tableEvents["commercial_invoices Chart"] = new eventsBase;

?>
